package com.ace.modular.system.controller;

import com.ace.common.constants.ConstantFactory;
import com.ace.core.utils.SpringContextHolder;
import com.ace.persistence.TestInterface;
import com.ace.persistence.dao.TestClass;
import com.ace.persistence.dao.UserMapper;
import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by com.ace on 2018/3/9.
 */
@Controller
@DependsOn("springContextHolder")
public class LoginController{
    @RequestMapping(value = "/user", method = RequestMethod.GET)
    public String login(){
        System.out.println();
        System.out.println(ConstantFactory.me().getUserAccountById(1));
        System.out.println("[Spring MVC]调用LoginController");
        return "/index.html";
    }
}
